package com.xy.dao;

import com.xy.model.RoleAndPerms;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface RolePermsDao {
    /**
     *
     * @param roleAndPerms
     * @return
     */
    int addRolePerms(@Param("roleAndPerms") RoleAndPerms roleAndPerms);

    /**
     *
     * @param roleId
     * @param permsId
     * @return
     */
    int delRolePerms(@Param("roleId") Integer roleId,@Param("permsId") Integer permsId);
}
